-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
register_to_file: Support Sensitive regtoken
#164
Conversation
Looks correct. Could you regenerate the REFERENCE.md ( |
Hum, maybe your bundle is outdated?
|
No change. It seems like it's complaining about the It's not a file I touched, but maybe we just need to add an |
19cd27e
to
d77ca1b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks-like CI is happier 👍
Just a minor thing, and I think we are good to go!
Ended up rebuilding my ruby environment and that seemed to do the trick. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good. Maybe a test that ensure we do not break this by error in the future would be great? #165 should have fixed CI, can you rebase on top of it?
I took a stab at the spec test for this change and it passed when run locally. Not sure what to make of the automated tests, seems like they're broken (at least) due to Puppet 8.0.1 needing a newer version of Ruby than whats provided? |
Anything I can/need do to get this merged, or is this still broken due to the Puppet 8 release? |
I think the error was fixed. Let's close & re-open to trigger a build. |
Just ran into this - patch works great thanks. |
Approved but given the age here a rebase makes sense I would say. |
When retrieving a runner registration token from a lookup plugin such as `vault_lookup` the token will be marked as Sensitive. This change allows for an object of `Sensitive[String]` type to be passed in for `regtoken` and ensures it is properly unwrapped before use.
Co-authored-by: Romain Tartière <[email protected]>
#191 should fix tests. |
Pull Request (PR) description
When retrieving a runner registration token from a lookup plugin such as
vault_lookup
the token will be marked as Sensitive. This change allows for an object ofSensitive[String]
type to be passed in forregtoken
and ensures it is properly unwrapped before use.